﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dataimport.aspx.cs" Inherits="BlackHole.DataImport" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        &nbsp;数据导入：<br />
        <asp:Panel 
            ID="panelUpload" runat="server">
            数据文件：<asp:FileUpload runat="server" ID="Uploader" />
            <asp:Button ID="btnUpload" runat="server" onclick="btnUpload_Click" 
    Text="上传" />
        </asp:Panel>
        <asp:Panel ID="panelVaildate" runat="server" Visible="False">
            <asp:GridView ID="dataProducts" runat="server" 
            AutoGenerateColumns="False">
                <Columns>
                    <asp:CheckBoxField DataField="IsRecord" HeaderText="IsRecord" 
                        SortExpression="IsRecord" />
                    <asp:CheckBoxField DataField="IsImportable" HeaderText="IsImportable" 
                        SortExpression="IsImportable" />
                    <asp:BoundField DataField="OwnerId" HeaderText="OwnerId" 
                        SortExpression="OwnerId" />
                    <asp:BoundField DataField="ProductId" HeaderText="ProductId" 
                        SortExpression="ProductId" />
                    <asp:BoundField DataField="ProductDeviceId" HeaderText="ProductDeviceId" 
                        SortExpression="ProductDeviceId" />
                    <asp:BoundField DataField="ProductSerialNO" HeaderText="ProductSerialNO" 
                        SortExpression="ProductSerialNO" />
                    <asp:BoundField DataField="ProductPsamNO" HeaderText="ProductPsamNO" 
                        SortExpression="ProductPsamNO" />
                    <asp:BoundField DataField="ProductRomVersion" HeaderText="ProductRomVersion" 
                        SortExpression="ProductRomVersion" />
                    <asp:BoundField DataField="RequestFaultId" HeaderText="RequestFaultId" 
                        SortExpression="RequestFaultId" />
                    <asp:BoundField DataField="RealFaultId" HeaderText="RealFaultId" 
                        SortExpression="RealFaultId" />
                    <asp:BoundField DataField="InDate" HeaderText="InDate" 
                        SortExpression="InDate" />
                    <asp:BoundField DataField="OutDate" HeaderText="OutDate" 
                        SortExpression="OutDate" />
                    <asp:BoundField DataField="RepairMethod" HeaderText="RepairMethod" 
                        SortExpression="RepairMethod" />
                    <asp:BoundField DataField="RepairGear" HeaderText="RepairGear" 
                        SortExpression="RepairGear" />
                </Columns>
            </asp:GridView>
            <asp:Label ID="lblStats" runat="server"></asp:Label>
            <asp:CheckBox ID="chkForce" runat="server" AutoPostBack="True" 
                oncheckedchanged="chkForce_CheckedChanged" Text="忽略冲突项" />
            <asp:Button ID="btnInsert" runat="server" Enabled="False" 
                onclick="btnInsert_Click" Text="导入" />
        </asp:Panel>
        </div>
    </form>
</body>
</html>
